import request from '@/utils/request.js'

//获取所有课程信息
export const getAllCourseInfo = (queryParams)=>{
    return request.get('/teach-system/admin/getAllCourse',{params:queryParams});
}

//删除课程信息
export const deleteByCourseId=(id)=>{
    return request.delete('/teach-system/admin/deleteById/'+id)
}

//获取详情
export const getDetailByCourseId=(id)=>{
    return request.get('/teach-system/admin/getDetailById/'+id)
}

//编辑课程信息
export const updateCourseById=(course)=>{
    return request.put('/teach-system/admin/updateCourseById',course)
}

//添加课程信息
export const addCourseInfo=(course)=>{
    return request.put('/teach-system/admin/addCourseInfo',course)
}